package com.jiangjiang.eshop.purchase.convert;

import com.jiangjiang.eshop.purchase.domain.PurchaseOrderItemEntity;
import com.jiangjiang.eshop.purchase.dto.PurchaseOrderItemDTO;
import org.mapstruct.Mapper;

import java.util.Collection;
import java.util.List;

/**
 * @ClassName PurchaseOrderItemConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/9/20 7:36
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface PurchaseOrderItemConvert {

    Collection<PurchaseOrderItemEntity> convertDTOList2Entities(List<PurchaseOrderItemDTO> itemsList);

    List<PurchaseOrderItemDTO> convertEntity2DTO(List<PurchaseOrderItemEntity> itemEntities);
}
